<?php
include_once("../metier/question.dao.php");
include_once("../metier/question.class.php");
header("Content-Type: text/plain");
$id = (isset($_GET["id"])) ? $_GET["id"] : NULL;

if ($id) {
	$db = new myPDO("127.0.0.1", "root", "", 0);
	$questionDAO = new QuestionDAO();
	$question = new Question($id);
	$questionDAO->deleteQuestion($question, $db);
} else {
    echo "FAIL";
}
 
?>